package com.project.bean;

import java.time.LocalDate;
public class CommodityBean {
    private Integer id;
    private String name;
    private String factory;
    private Double money;
    private LocalDate date;

    public CommodityBean() {
    }

    public CommodityBean(String name, String factory, Double money, LocalDate date) {
        this.name = name;
        this.factory = factory;
        this.money = money;
        this.date = date;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFactory() {
        return factory;
    }

    public void setFactory(String factory) {
        this.factory = factory;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate birthday) {
        this.date = birthday;
    }


    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", factory='" + factory + '\'' +
                ", money=" + money +
                ", date=" + date +
                '}';
    }
}
